diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-08 12:51:06 -0500 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-11-30 10:34:45 -0500 |
commit | 6b124d8dba1f46c5f2caf3b3159bbe627f75b9b6 (patch) | |
tree | 42f03f02a7fe7ccfc9c676ddcdbdcdcb28defef6 /fs/gfs2/ops_file.h | |
parent | 2ca99501fa5422e84f18333918a503433449e2b5 (diff) |
[GFS2] Only set inode flags when required
We were setting the inode flags from GFS2's flags far too often, even when they
couldn't possibly have changed. This patch reduces the amount of flag
setting going on so that we do it only when the inode is read in or
when the flags have changed. The create case is covered by the "when
the inode is read in" case.
This also fixes a bug where we didn't set S_SYNC correctly.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_file.h')
-rw-r--r-- | fs/gfs2/ops_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_file.h b/fs/gfs2/ops_file.h index ce319f89ec8..7e5d8ec9c84 100644 --- a/fs/gfs2/ops_file.h +++ b/fs/gfs2/ops_file.h @@ -17,7 +17,7 @@ extern struct file gfs2_internal_file_sentinel; extern int gfs2_internal_read(struct gfs2_inode *ip, struct file_ra_state *ra_state, char *buf, loff_t *pos, unsigned size); - +extern void gfs2_set_inode_flags(struct inode *inode); extern const struct file_operations gfs2_file_fops; extern const struct file_operations gfs2_dir_fops; |