Commit 1fe128d2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] nommu vmtruncate: remove lock_kernel()

lock_kernel() need not be held across truncate.
parent 3bd404cf
......@@ -62,11 +62,8 @@ int vmtruncate(struct inode *inode, loff_t offset)
inode->i_size = offset;
out_truncate:
if (inode->i_op && inode->i_op->truncate) {
lock_kernel();
if (inode->i_op && inode->i_op->truncate)
inode->i_op->truncate(inode);
unlock_kernel();
}
return 0;
out_sig:
send_sig(SIGXFSZ, current, 0);
......
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