diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2007-10-17 08:35:19 +0100 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2008-01-25 08:07:21 +0000 |
commit | bf36a713169432643d4fc7eeb4e0ace96d791d26 (patch) | |
tree | 2cb69c9716b9ee8c687ef807bb88d5e635db3462 /fs/gfs2/incore.h | |
parent | e7e36f143565d14950055c893cfaf4400ad64d34 (diff) | |
download | op-kernel-dev-bf36a713169432643d4fc7eeb4e0ace96d791d26.zip op-kernel-dev-bf36a713169432643d4fc7eeb4e0ace96d791d26.tar.gz |
[GFS2] Add gfs2_is_writeback()
This adds a function "gfs2_is_writeback()" along the lines of the
existing "gfs2_is_jdata()" in order to clean up the code and make
the various tests for the inode mode more obvious. It also fixes
the PageChecked() logic where we were resetting the flag too early
in the case of an error path.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/incore.h')
-rw-r--r-- | fs/gfs2/incore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/incore.h b/fs/gfs2/incore.h index e53da7d..82dfe9b 100644 --- a/fs/gfs2/incore.h +++ b/fs/gfs2/incore.h @@ -285,7 +285,7 @@ static inline struct gfs2_inode *GFS2_I(struct inode *inode) return container_of(inode, struct gfs2_inode, i_inode); } -static inline struct gfs2_sbd *GFS2_SB(struct inode *inode) +static inline struct gfs2_sbd *GFS2_SB(const struct inode *inode) { return inode->i_sb->s_fs_info; } |