diff options
author | piaojun <piaojun@huawei.com> | 2018-04-05 19:18:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-04-06 00:36:21 -0400 |
commit | 1119d3c06f64a7123d774c363440987952c522ef (patch) | |
tree | 3ea049b8e46a79428322185c1dd86e306d1022a8 /fs/ocfs2/file.c | |
parent | 6870c0165feaa5e337e78ab2c781ed46f086bca2 (diff) |
ocfs2: use 'osb' instead of 'OCFS2_SB()'
We could use 'osb' instead of 'OCFS2_SB()' to make code more elegant.
Link: http://lkml.kernel.org/r/5A702111.7090907@huawei.com
Signed-off-by: Jun Piao <piaojun@huawei.com>
Reviewed-by: Yiwen Jiang <jiangyiwen@huawei.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Mark Fasheh <mark@fasheh.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Cc: Joseph Qi <jiangqi903@gmail.com>
Cc: Changwei Ge <ge.changwei@h3c.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ocfs2/file.c')
-rw-r--r-- | fs/ocfs2/file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 5d1784a365a3..9d8c3ee05c39 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -296,7 +296,7 @@ int ocfs2_update_inode_atime(struct inode *inode, | |||
296 | ocfs2_journal_dirty(handle, bh); | 296 | ocfs2_journal_dirty(handle, bh); |
297 | 297 | ||
298 | out_commit: | 298 | out_commit: |
299 | ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); | 299 | ocfs2_commit_trans(osb, handle); |
300 | out: | 300 | out: |
301 | return ret; | 301 | return ret; |
302 | } | 302 | } |