23 Sep, 2009

1 commit

  • reflink is a very complicated process, so it can't be integrated
    into one transaction. So if the system panic in the operation, we
    may leave a unfinished inode in the destication directory.

    So we will try to create an inode in orphan_dir first, reflink it
    to the src file and then move it to the destication file in the end.
    In that way we won't be afraid of any corruption during the reflink.

    This patch adds 2 functions for orphan_dir operation:
    1. Create a new inode in orphand dir.
    2. Move an inode to a target dir.

    Note:
    fsck.ocfs2 should work for us to remove the unfinished file in the
    orphan_dir.

    Signed-off-by: Tao Ma

    Tao Ma
     

13 Oct, 2007

1 commit

  • The code for adding, removing, deleting directory entries was splattered all
    over namei.c. I'd rather have this all centralized, so that it's easier to
    make changes for inline dir data, and eventually indexed directories.

    None of the code in any of the functions was changed. I only removed the
    static keyword from some prototypes so that they could be exported.

    Signed-off-by: Mark Fasheh
    Reviewed-by: Joel Becker

    Mark Fasheh
     

13 Feb, 2007

1 commit

  • Many struct inode_operations in the kernel can be "const". Marking them const
    moves these to the .rodata section, which avoids false sharing with potential
    dirty data. In addition it'll catch accidental writes at compile time to
    these shared resources.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     

02 Dec, 2006

1 commit


04 Jan, 2006

1 commit