projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gfs2: don't worry about I_DIRTY_TIME in gfs2_fsync()
[linux-2.6-microblaze.git]
/
fs
/
gfs2
/
file.c
diff --git
a/fs/gfs2/file.c
b/fs/gfs2/file.c
index
b39b339
..
7fe2497
100644
(file)
--- a/
fs/gfs2/file.c
+++ b/
fs/gfs2/file.c
@@
-749,7
+749,7
@@
static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
{
struct address_space *mapping = file->f_mapping;
struct inode *inode = mapping->host;
{
struct address_space *mapping = file->f_mapping;
struct inode *inode = mapping->host;
- int sync_state = inode->i_state & I_DIRTY
_ALL
;
+ int sync_state = inode->i_state & I_DIRTY;
struct gfs2_inode *ip = GFS2_I(inode);
int ret = 0, ret1 = 0;
struct gfs2_inode *ip = GFS2_I(inode);
int ret = 0, ret1 = 0;
@@
-762,7
+762,7
@@
static int gfs2_fsync(struct file *file, loff_t start, loff_t end,
if (!gfs2_is_jdata(ip))
sync_state &= ~I_DIRTY_PAGES;
if (datasync)
if (!gfs2_is_jdata(ip))
sync_state &= ~I_DIRTY_PAGES;
if (datasync)
- sync_state &= ~
(I_DIRTY_SYNC | I_DIRTY_TIME)
;
+ sync_state &= ~
I_DIRTY_SYNC
;
if (sync_state) {
ret = sync_inode_metadata(inode, 1);
if (sync_state) {
ret = sync_inode_metadata(inode, 1);