Commit f0cb0f0b authored by Junxiao Bi's avatar Junxiao Bi Committed by Linus Torvalds

fs/ocfs2/file.c: fix wrong comment

Unwritten extent only exists for file systems which support holes.  But
the comment said was opposite meaning and also the comment is not very
clear, so rephase it.
Signed-off-by: default avatarJunxiao Bi <junxiao.bi@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 06f9da6e
...@@ -580,7 +580,7 @@ static int __ocfs2_extend_allocation(struct inode *inode, u32 logical_start, ...@@ -580,7 +580,7 @@ static int __ocfs2_extend_allocation(struct inode *inode, u32 logical_start,
int did_quota = 0; int did_quota = 0;
/* /*
* This function only exists for file systems which don't * Unwritten extent only exists for file systems which
* support holes. * support holes.
*/ */
BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb)); BUG_ON(mark_unwritten && !ocfs2_sparse_alloc(osb));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment