git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
RDMA/nldev: Enforce device index check for port callback
[sfrench/cifs-2.6.git]
/
fs
/
ext4
/
fsync.c
diff --git
a/fs/ext4/fsync.c
b/fs/ext4/fsync.c
index aae2c3971cef2dc70065f85431584b7feed8cb36..f9230580a84b2efd9317ad175c71dabcffbf2c5d 100644
(file)
--- a/
fs/ext4/fsync.c
+++ b/
fs/ext4/fsync.c
@@
-107,7
+107,7
@@
int ext4_sync_file(struct file *file, loff_t start, loff_t end, int datasync)
trace_ext4_sync_file_enter(file, datasync);
- if (
inode->i_sb->s_flags & MS_RDONLY
) {
+ if (
sb_rdonly(inode->i_sb)
) {
/* Make sure that we read updated s_mount_flags value */
smp_rmb();
if (EXT4_SB(inode->i_sb)->s_mount_flags & EXT4_MF_FS_ABORTED)