checkpoint.c (22ad0b6ab46683975c6da032f1c2593066c7b3bd) checkpoint.c (55523519bc7227e651fd4febeb3aafdd22b8af1c)
1/*
2 * fs/f2fs/checkpoint.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

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

489 struct inode_management *im = &sbi->im[ORPHAN_INO];
490 int err = 0;
491
492 spin_lock(&im->ino_lock);
493
494#ifdef CONFIG_F2FS_FAULT_INJECTION
495 if (time_to_inject(sbi, FAULT_ORPHAN)) {
496 spin_unlock(&im->ino_lock);
1/*
2 * fs/f2fs/checkpoint.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

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

489 struct inode_management *im = &sbi->im[ORPHAN_INO];
490 int err = 0;
491
492 spin_lock(&im->ino_lock);
493
494#ifdef CONFIG_F2FS_FAULT_INJECTION
495 if (time_to_inject(sbi, FAULT_ORPHAN)) {
496 spin_unlock(&im->ino_lock);
497 f2fs_show_injection_info(FAULT_ORPHAN);
497 return -ENOSPC;
498 }
499#endif
500 if (unlikely(im->ino_num >= sbi->max_orphans))
501 err = -ENOSPC;
502 else
503 im->ino_num++;
504 spin_unlock(&im->ino_lock);

--- 859 unchanged lines hidden ---
498 return -ENOSPC;
499 }
500#endif
501 if (unlikely(im->ino_num >= sbi->max_orphans))
502 err = -ENOSPC;
503 else
504 im->ino_num++;
505 spin_unlock(&im->ino_lock);

--- 859 unchanged lines hidden ---