summaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/cpfile.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2016-05-23 19:23:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-23 20:04:14 -0400
commit076a378ba6e6b6ddd5f2336aa0876349b7d36409 (patch)
tree150c71c85a086bb76e66e08e2fd0d5ee1b7db166 /fs/nilfs2/cpfile.c
parent80d6505232ec2476eef8d988ea98ac81eb2e0975 (diff)
nilfs2: fix block comments
This fixes block comments with proper formatting to eliminate the following checkpatch.pl warnings: "WARNING: Block comments use * on subsequent lines" "WARNING: Block comments use a trailing */ on a separate line" Link: http://lkml.kernel.org/r/1462886671-3521-8-git-send-email-konishi.ryusuke@lab.ntt.co.jp Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nilfs2/cpfile.c')
-rw-r--r--fs/nilfs2/cpfile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/nilfs2/cpfile.c b/fs/nilfs2/cpfile.c
index b61c3e0eb342..8a3d3b65af3f 100644
--- a/fs/nilfs2/cpfile.c
+++ b/fs/nilfs2/cpfile.c
@@ -870,8 +870,10 @@ int nilfs_cpfile_is_snapshot(struct inode *cpfile, __u64 cno)
870 void *kaddr; 870 void *kaddr;
871 int ret; 871 int ret;
872 872
873 /* CP number is invalid if it's zero or larger than the 873 /*
874 largest exist one.*/ 874 * CP number is invalid if it's zero or larger than the
875 * largest existing one.
876 */
875 if (cno == 0 || cno >= nilfs_mdt_cno(cpfile)) 877 if (cno == 0 || cno >= nilfs_mdt_cno(cpfile))
876 return -ENOENT; 878 return -ENOENT;
877 down_read(&NILFS_MDT(cpfile)->mi_sem); 879 down_read(&NILFS_MDT(cpfile)->mi_sem);