f2fs: use correct errno
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Feb 2016 18:24:31 +0000 (10:24 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
This patch is to fix misused error number.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c

index 57a5f7bb275ae21b0935e1d8f89e83624bf06117..47fbb72635ef24242e0abdb1571e2442ddca9a85 100644 (file)
@@ -505,7 +505,7 @@ static int f2fs_issue_discard(struct f2fs_sb_info *sbi,
 
 bool discard_next_dnode(struct f2fs_sb_info *sbi, block_t blkaddr)
 {
-       int err = -ENOTSUPP;
+       int err = -EOPNOTSUPP;
 
        if (test_opt(sbi, DISCARD)) {
                struct seg_entry *se = get_seg_entry(sbi,