dir.c (58f7553fa424fd0fd74e8b796d50c66014cebebe) dir.c (b8f1da98a219ab8c371fae5c3efb4b90b8594f3b)
1// SPDX-License-Identifier: GPL-2.0-only
2/* * This file is part of UBIFS.
3 *
4 * Copyright (C) 2006-2008 Nokia Corporation.
5 * Copyright (C) 2006, 2007 University of Szeged, Hungary
6 *
7 * Authors: Artem Bityutskiy (Битюцкий Артём)
8 * Adrian Hunter

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

829}
830
831/**
832 * check_dir_empty - check if a directory is empty or not.
833 * @dir: VFS inode object of the directory to check
834 *
835 * This function checks if directory @dir is empty. Returns zero if the
836 * directory is empty, %-ENOTEMPTY if it is not, and other negative error codes
1// SPDX-License-Identifier: GPL-2.0-only
2/* * This file is part of UBIFS.
3 *
4 * Copyright (C) 2006-2008 Nokia Corporation.
5 * Copyright (C) 2006, 2007 University of Szeged, Hungary
6 *
7 * Authors: Artem Bityutskiy (Битюцкий Артём)
8 * Adrian Hunter

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

829}
830
831/**
832 * check_dir_empty - check if a directory is empty or not.
833 * @dir: VFS inode object of the directory to check
834 *
835 * This function checks if directory @dir is empty. Returns zero if the
836 * directory is empty, %-ENOTEMPTY if it is not, and other negative error codes
837 * in case of of errors.
837 * in case of errors.
838 */
839int ubifs_check_dir_empty(struct inode *dir)
840{
841 struct ubifs_info *c = dir->i_sb->s_fs_info;
842 struct fscrypt_name nm = { 0 };
843 struct ubifs_dent_node *dent;
844 union ubifs_key key;
845 int err;

--- 806 unchanged lines hidden ---
838 */
839int ubifs_check_dir_empty(struct inode *dir)
840{
841 struct ubifs_info *c = dir->i_sb->s_fs_info;
842 struct fscrypt_name nm = { 0 };
843 struct ubifs_dent_node *dent;
844 union ubifs_key key;
845 int err;

--- 806 unchanged lines hidden ---