Re: [PATCH] btrfs: fix crash when no drive supports DISCARD

2011-05-21 Thread Li Dongyang
On Friday, May 20, 2011 10:15:46 PM Josef Bacik wrote: On 05/20/2011 07:52 AM, David Sterba wrote: On Wed, May 18, 2011 at 11:29:14AM +0800, Li Dongyang wrote: Thanks for the fix, I thought EOPNOTSUPP could be useful by the caller that time, and maybe we could do somthing like remove the

curious writes on mounted, not used btrfs filesystem

2011-05-21 Thread Tomasz Chmielewski
I have a btrfs filesystem (2.6.39) which is mounted, but otherwise, not used: # lsof -n|grep /mnt/btrfs # I noticed that whenever I do sync, btrfs will write for around 6.5s and write 13 MB (see below). If I do a while true; do sync; done, there will be constant writes to btrfs filesystem

Re: [PATCH 1/2] fs: add a DCACHE_NEED_LOOKUP flag for d_flags V2

2011-05-21 Thread Al Viro
On Fri, May 20, 2011 at 01:44:30PM -0400, Josef Bacik wrote: + if (unlikely(d_need_lookup(dentry))) { + if (nameidata_dentry_drop_rcu(nd, dentry)) + return -ECHILD; + dput(dentry); + dentry =