dir.c (08b95126c787441e4ef572422a5237dd985147be) dir.c (26bf3dc7e25b813ff5c92234f8165941fdc12a63)
1/*
2 * fs/f2fs/dir.c
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 811 unchanged lines hidden (view full) ---

820 struct f2fs_dentry_block *dentry_blk = NULL;
821 struct page *dentry_page = NULL;
822 struct file_ra_state *ra = &file->f_ra;
823 unsigned int n = ((unsigned long)ctx->pos / NR_DENTRY_IN_BLOCK);
824 struct f2fs_dentry_ptr d;
825 struct f2fs_str fstr = FSTR_INIT(NULL, 0);
826 int err = 0;
827
1/*
2 * fs/f2fs/dir.c
3 *
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com/
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as

--- 811 unchanged lines hidden (view full) ---

820 struct f2fs_dentry_block *dentry_blk = NULL;
821 struct page *dentry_page = NULL;
822 struct file_ra_state *ra = &file->f_ra;
823 unsigned int n = ((unsigned long)ctx->pos / NR_DENTRY_IN_BLOCK);
824 struct f2fs_dentry_ptr d;
825 struct f2fs_str fstr = FSTR_INIT(NULL, 0);
826 int err = 0;
827
828 err = f2fs_setup_fname_crypto(inode);
829 if (err)
830 return err;
831
832 if (f2fs_encrypted_inode(inode)) {
828 if (f2fs_encrypted_inode(inode)) {
829 err = f2fs_get_encryption_info(inode);
830 if (err)
831 return err;
832
833 err = f2fs_fname_crypto_alloc_buffer(inode, F2FS_NAME_LEN,
834 &fstr);
835 if (err < 0)
836 return err;
837 }
838
839 if (f2fs_has_inline_dentry(inode)) {
840 err = f2fs_read_inline_dir(file, ctx, &fstr);

--- 45 unchanged lines hidden ---
833 err = f2fs_fname_crypto_alloc_buffer(inode, F2FS_NAME_LEN,
834 &fstr);
835 if (err < 0)
836 return err;
837 }
838
839 if (f2fs_has_inline_dentry(inode)) {
840 err = f2fs_read_inline_dir(file, ctx, &fstr);

--- 45 unchanged lines hidden ---