Re: [patch] cgroup fs: avoid switching ->d_op on live dentry

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Dec 21, 2010 at 9:44 AM, Sedat Dilek <sedat.dilek@xxxxxxxxxxxxxx> wrote:
> Against linux-next (next-20101210) it should look like:
>
> $ diff -Naur cgroup-fix/cgroup-fs-avoid-switching-d_op-on-live-dentry.patch
> cgroup-fix/cgroup-fs-avoid-switching-d_op-on-live-dentry-v2.patch
> --- cgroup-fix/cgroup-fs-avoid-switching-d_op-on-live-dentry.patch
> Â2010-12-21 09:31:38.649601964 +0100
> +++ cgroup-fix/cgroup-fs-avoid-switching-d_op-on-live-dentry-v2.patch
> Â2010-12-21 09:40:21.151033232 +0100
> @@ -83,7 +83,7 @@
> Â Â Â Â Â Â Â Âinode->i_size = 0;
> Â Â Â Â Â Â Â Âinode->i_fop = &cgroup_file_operations;
> Â Â Â Â}
> -- Â Â Âdentry->d_op = &cgroup_dops;
> +- Â Â Âd_set_d_op(dentry, &cgroup_dops);
> Â Â Â Âd_instantiate(dentry, inode);
> Â Â Â Âdget(dentry); Â /* Extra count - pin the dentry in core */
> Â Â Â Âreturn 0;
>
> - Sedat -
>

YAY!!!

# dmesg | grep systemd
[    0.000000] Kernel command line:
BOOT_IMAGE=/boot/vmlinuz-2.6.37-rc6-686
root=UUID=1ceb69a7-ecf4-47e9-a231-b74e0f0a9b62 ro ini
[    4.124563] systemd[1]: systemd 15 running in system mode. (+PAM
-LIBWRAP -AUDIT +SELINUX +SYSVINIT -LIBCRYPTSETUP; debian)
[    4.246090] systemd[1]: Set hostname to <tbox>.
[    6.942949] systemd-logger[290]: Got error on stream: No such
process
[    9.011378] systemd-fsck[524]: /dev/sda3: sauber, 128062/640848
Dateien, 1839774/2560359 BlÃcke
[   15.186112] systemd[1]: ifupdown-clean.service: control process
exited, code=exited status=209
[   15.186941] systemd[1]: Unit ifupdown-clean.service entered failed state.
[   15.187363] systemd[1]: mountoverflowtmp.service: control process
exited, code=exited status=209
[   15.206223] systemd[1]: Unit mountoverflowtmp.service entered failed state.
[   15.215739] systemd[1]: resolvconf.service: control process exited,
code=exited status=209
[   15.235257] systemd[1]: Unit resolvconf.service entered failed state.

Feel free to add:

       Reported-and-tested-by: Sedat Dilek <sedat.dilek@xxxxxxxxx>

(Tested with the above v2 patch against linux-next (next-20101221) -
see file attachment).

- Sedat -

Attachment: cgroup-fs-avoid-switching-d_op-on-live-dentry-v2.patch
Description: plain/text


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux