commit | b3fc3c35521c4de0a0d61796517630f7e206b796 | [log] [tgz] |
---|---|---|
author | Ethan Chen <intervigil@gmail.com> | Fri Aug 16 11:51:37 2013 -0700 |
committer | Ethan Chen <intervigil@gmail.com> | Fri Aug 16 11:51:37 2013 -0700 |
tree | 4a3a273de84ca7f1e84b008ce6c824011e9e159e | |
parent | fddaf2dbc55e9b33b2760e89f407f29b923068d7 [diff] |
ext4: actually report that FITRIM is not supported Change-Id: I75e0127135d9c6acb010b6b9e70163256aebe4eb
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index 7ec8c67..d5cb2b8 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c
@@ -433,9 +433,11 @@ if (copy_to_user((struct fstrim_range __user *)arg, &range, sizeof(range))) return -EFAULT; -#endif return 0; +#else + return -EOPNOTSUPP; +#endif } default: