Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 335446
b: refs/heads/master
c: 3a238ad
h: refs/heads/master
v: v3
  • Loading branch information
Lukas Czerner authored and Steven Whitehouse committed Nov 7, 2012
1 parent fe1b5b4 commit ad3dcfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73738a77f42c2d7f53fd61f73272c9dd6f520897
refs/heads/master: 3a238adefb8c5b8cb8cde0ce689d513306176ff4
8 changes: 2 additions & 6 deletions trunk/fs/gfs2/rgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1270,11 +1270,7 @@ int gfs2_fitrim(struct file *filp, void __user *argp)
if (!blk_queue_discard(q))
return -EOPNOTSUPP;

if (argp == NULL) {
r.start = 0;
r.len = ULLONG_MAX;
r.minlen = 0;
} else if (copy_from_user(&r, argp, sizeof(r)))
if (copy_from_user(&r, argp, sizeof(r)))
return -EFAULT;

ret = gfs2_rindex_update(sdp);
Expand Down Expand Up @@ -1323,7 +1319,7 @@ int gfs2_fitrim(struct file *filp, void __user *argp)

out:
r.len = trimmed << 9;
if (argp && copy_to_user(argp, &r, sizeof(r)))
if (copy_to_user(argp, &r, sizeof(r)))
return -EFAULT;

return ret;
Expand Down

0 comments on commit ad3dcfa

Please sign in to comment.