caps.c (222b7f90ba3825728fd27e9105aeee7af9576819) | caps.c (97aeb6bf988e0830fd80dca724fd89526b3f35e4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2#include <linux/ceph/ceph_debug.h> 3 4#include <linux/fs.h> 5#include <linux/kernel.h> 6#include <linux/sched/signal.h> 7#include <linux/slab.h> 8#include <linux/vmalloc.h> --- 484 unchanged lines hidden (view full) --- 493 /* 494 * If FILE_SHARED is newly issued, mark dir not complete. We don't 495 * know what happened to this directory while we didn't have the cap. 496 * If FILE_SHARED is being revoked, also mark dir not complete. It 497 * stops on-going cached readdir. 498 */ 499 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) { 500 if (issued & CEPH_CAP_FILE_SHARED) | 1// SPDX-License-Identifier: GPL-2.0 2#include <linux/ceph/ceph_debug.h> 3 4#include <linux/fs.h> 5#include <linux/kernel.h> 6#include <linux/sched/signal.h> 7#include <linux/slab.h> 8#include <linux/vmalloc.h> --- 484 unchanged lines hidden (view full) --- 493 /* 494 * If FILE_SHARED is newly issued, mark dir not complete. We don't 495 * know what happened to this directory while we didn't have the cap. 496 * If FILE_SHARED is being revoked, also mark dir not complete. It 497 * stops on-going cached readdir. 498 */ 499 if ((issued & CEPH_CAP_FILE_SHARED) != (had & CEPH_CAP_FILE_SHARED)) { 500 if (issued & CEPH_CAP_FILE_SHARED) |
501 ci->i_shared_gen++; | 501 atomic_inc(&ci->i_shared_gen); |
502 if (S_ISDIR(ci->vfs_inode.i_mode)) { 503 dout(" marking %p NOT complete\n", &ci->vfs_inode); 504 __ceph_dir_clear_complete(ci); 505 } 506 } 507} 508 509/* --- 3526 unchanged lines hidden --- | 502 if (S_ISDIR(ci->vfs_inode.i_mode)) { 503 dout(" marking %p NOT complete\n", &ci->vfs_inode); 504 __ceph_dir_clear_complete(ci); 505 } 506 } 507} 508 509/* --- 3526 unchanged lines hidden --- |